package com.geek.factory.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 原料供应商关联表
 * </p>
 *
 * @author author
 * @since 2025-06-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("material_supplier")
@ApiModel(value="MaterialSupplier对象", description="原料供应商关联表")
public class MaterialSupplier implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "关联ID")
    @TableId(value = "relation_id", type = IdType.AUTO)
    private Integer relationId;

    @TableField(exist = false)
    private String materialName;

    @TableField(exist = false)
    private String supplierName;

    @TableField(exist = false)
    private String materialCode;

    @ApiModelProperty(value = "原料ID")
    private Integer materialId;

    @ApiModelProperty(value = "供应商ID")
    private Integer supplierId;

    @ApiModelProperty(value = "交货周期(天)")
    private Integer leadTime;

    @ApiModelProperty(value = "最小起订量")
    private BigDecimal minOrderQuantity;

    @ApiModelProperty(value = "采购单价")
    private BigDecimal unitPrice;

    @ApiModelProperty(value = "币种")
    private String currency;

    @ApiModelProperty(value = "价格有效期")
    private LocalDate validityDate;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建人")
    private String createdBy;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createdTime;


}
